<!--图标封装-->
<template>
    <svg class="icon" aria-hidden="true" :style="{fontSize: fontSize + 'px',color}">
        <use :xlink:href="'#' + iconName"></use>
    </svg>
</template>

<script setup>
import {defineProps} from 'vue'

const props = defineProps({
	iconName: {
		type: String,
		default: ''
	},
	fontSize: {
		type: String,
		default: '16'
	},
	color: {
		type: String,
		default: '#606266'
	}
})
</script>

<style lang="scss" scoped>
.icon {
    width: 1em; height: 1em;
    vertical-align: text-bottom;
    fill: currentColor;
    //overflow: hidden;
    cursor: pointer;
}
</style>
